//数据库迁移（同步）
import { sequelize } from './sequelize.js'
import '../../model/BookDB.js'

// export function sync() {
//   sequelize.authenticate().then(()=> {
//     console.log('连接成功')
//     sequelize.sync(()=> {
//       console.log('同步成功')
//     }).catch(err => console.log('同步失败',err))
//   }).catch(err => console.log('连接失败',err))
// }

export async function sync1() {
  await sequelize.sync()
}